package pattern.decorator.cake.v1;

/**
 * @author juxiaojun
 * @since 2019-05-12
 */
public class PancakeWithEgg extends Pancake {
    @Override
    protected String getMsg() {
        return super.getMsg() + "+1个鸡蛋";
    }

    @Override
    //加一个鸡蛋加1块钱
    public int getPrice() {
        return super.getPrice() + 1;
    }
}
